package org.boot.ssm.wxshop.web.common;

import java.io.Serializable;
import java.util.Map;

/**
 * json 响应返回的数据
 */
@SuppressWarnings("all")
public class JsonResult implements Serializable{

	/**
	 * 响应吗
	 */
	private int code;
	/**
	 * 响应消息
	 */
	private String msg;
	
	
	/**
	 * json 对象
	 */
	private Object data;

	/**
	 * 数据条数
	 */
	private Long count;

	/**
	 * 跳转url
	 */
	private String url;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}


	public Long getCount() {
		return count;
	}

	public void setCount(Long count) {
		this.count = count;
	}

	public JsonResult() {
	}

	public JsonResult(String msg) {
		this.code=code;
	}
	
	public JsonResult(Integer code,String msg) {
		this.code=code;
		this.msg=msg;
	}
	
	

	public JsonResult(int code, String msg, Object data) {
		super();
		this.code = code;
		this.msg = msg;
		this.data = data;
	}

	public JsonResult(int code, String msg, Object data, Long count) {
		this.code = code;
		this.msg = msg;
		this.data = data;
		this.count = count;
	}
}

